package com.ashen.boot.admin.project.system.datapermission.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ashen.boot.admin.domain.model.entity.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户数据权限
 * </p>
 *
 * @author gao
 * @since 2021-11-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_sys_user_data_permission")
public class UserDataPermissionEntity extends BaseDomain {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 权限类型id
     */
    @TableField("data_permission_id")
    private Long dataPermissionId;

    /**
     * 权限值
     */
    @TableField("permission_val")
    private String permissionVal;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String DATA_PERMISSION_ID = "data_permission_id";

    public static final String PERMISSION_VAL = "permission_val";

}
